from django.conf.urls import url, include

from meiduo_mall.apps.users import views


urlpatterns = [

    url(r'^test/$', views.TestApiView.as_view()),
    url(r'^usernames/(?P<username>\w{5,20})/count/$', views.UsernameCountView.as_view()),
    url(r'^users/$', views.UsercreateView.as_view()),
    url(r'^user/$', views.UserDetailView.as_view()),#个人中心的路由
    # url(r'^browse_histories/$', views.BrowseHistoryView.as_view()),#个人中心的浏览历史路由
    url(r'^emails/$', views.UpdataEmailView.as_view()),#个人中心的更新ｅｍａｉｌ路由
    url(r'^emails/verification/$', views.VerifyEmailView.as_view()),
    url(r'^addresses/$', views.AddressUserView.as_view()),
    url(r'^addresses/(?P<pk>\d+)/$', views.AddressUserView.as_view()),
    url(r'^addresses/(?P<pk>\d+)/status/$', views.UpdataDefaultAddressView.as_view()),
    url(r'^addresses/(?P<pk>\d+)/title/$', views.AddressUserView.as_view()),

]

